﻿using System;
using System.ComponentModel;
using Core.DatabaseHelpers;

namespace Core.Interfaces
{
    [Table("building")]
    public interface IBuilding: IDomainObject
    {
        [DisplayName("Регистрационный номер")]
        [Column("register_id",ColumnAttribute.KeyType.FillIn,true)]
        string RegisterID{get; set; }

        [DisplayName("Количество этажей")]
        [Column("Flour_number")]
        int FlourNumber { get; set; }

        [DisplayName("Адрес")]
        [Column("adress")]
        string Address { get; set; }

        [DisplayName("Дата постройки")]
        [Column("build_date")]
        DateTime BuildingDate { get; set; }
        
        [Browsable(false)]
        [Column("district_id", true, true, "district")]
        IDistrict District { get; set; }

        [DisplayName("Площадь")]
        [Column("squere")]
        int Squere { get; set; }

        [DisplayName("Начальная цена")]
        int StartPrice { get; set; }
    }
}
